package com.peng.mybatis.scripting.xmltags;

import com.peng.mybatis.mapping.SqlSource;
import com.peng.mybatis.scripting.LanguageDriver;
import com.peng.mybatis.session.Configuration;
import org.dom4j.Element;

/**
 * XML语言驱动器
 */
public class XmlLanguageDriver implements LanguageDriver {

    @Override
    public SqlSource createSqlSource(Configuration configuration, Element script, Class<?> paramType) {
        return new XMLScriptBuilder(configuration, script, paramType).parseScriptNode();
    }

}
